<div class="page-content" >
	<div class="panel panel-default">
		<div class="panel-heading">
			<ul class="breadcrumb">
                    <li><a href="<{:U('payment')}>">支付方式管理</a> </li>
                    <li class="active">修改支付方式</li>
                </ul>
		</div>
		<div class="panel-body">
			   <form  enctype="multipart/form-data" class="form-horizontal" method="post" action="<{:U('paymentInsert')}>">
                     <input type="hidden" name="code" value="<{$code}>">
                     <input type="hidden" name="name" value="<{$name}>">
                     <input type="hidden" name="type" value="<{$type}>">
                    	  <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">支付Code</label>
                                <div class="col-sm-7" style="margin-top:6px;">
                                   <{$code}>
                                </div>
                            </div>

                             <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">支付名</label>
                                <div class="col-sm-7">
                                    <input type="text" class="form-control" id="payment_name" name="payment_name" value="<{$data['payment_name']?$data['payment_name']:$title}>">
                                    
                                </div>
                            </div>
							
							<volist name="configData"  id="v">
							<div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label"><{$v}></label>
                                <div class="col-sm-7">
                                    <input type="text" class="form-control" name="config[<{$key}>]" value="<{$configValue[$key]}>">
                                    
                                </div>
                            </div>
							</volist>
                            
                            <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">描述</label>
                                <div class="col-sm-7">
                                   <textarea name="payment_desc" class="form-control" id="payment_desc"><{$data.payment_desc}></textarea>
                            
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">图片</label>
                                <div class="col-sm-7">
                                     <input name="img" type="file">
                                     <if condition="$data['img']">
                                         <img src="__Img__/<{$data['img']}>" style="width:100px" />
                                     </if>
                                </div>
                            </div>
    
                            <div class="form-group">
					<div class="col-sm-offset-2 col-sm-7">
						<button type="submit" class="btn btn-primary">保存</button>
					</div>
				</div>

                        
                     </form> 
		</div>
	</div>
</div>
 